import http from '@/common/http/http'

//校验验证码，家长注册
export function addOrUpdateApi(data){
	return http({
		url:'/phone/tpaiParent/addOrUpdate',
		data,
		isToken : true,
	})
}
//套餐购买
export function telRechargeApi(data){
	return http({
		url:'/phone/recharge/telRecharge',
		data,
		isToken : true,
		// isOpenId:true
	})
}
 //获取信息
export function getParentApi(data){
	return http({
		url:'/phone/tpaiParent/getParent',
		data,
		isToken : true,
		isOpenId:true
	})
}
 //获取信息
export function getStudentApi(data){
	return http({
		url:'/phone/tpaiStudent/getStudent',
		data,
		isToken : true,
		isOpenId:true,
		// method: 'GET'
	})
}
//发短信
export function sendsmsApi(data){
	return http({
		url:'/phone/tpaiParent/sendsms',
		data,
		isToken : true,
		isOpenId : true,
	})
}

export function addOrUpdateWithPhotoUrlApi(data){
	return http({
		url:'/phone/tpaiStudent/addOrUpdateWithPhotoUrl',
		data,
		isToken : true,
		isOpenId : true,
	})
}

//查通话套餐信息
export function getStudentCallDurationApi(data){
	return http({
		url:'/phone/tpaiStudent/getStudentCallDuration',
		data,
		isToken : true,
	})
}

export function getRechargeRecordApi(data){
	return http({
		url:'/phone/tpaiStudent/getRechargeRecord',
		data,
		isToken : true,
	})
}
